package wrapper;

public class Dbl extends AbstractObject{
	protected double value;
	
	
	public Dbl(double value)
	{
		this.value = value;
	}
	
	public double getValue() {
		return value;
	}


	public void setValue(double value) {
		this.value = value;
	}

	protected int compareTo(Comparable object) {
		Dbl arg = (Dbl) object;
		if(value < arg.value)
			return -1;
		else if(value > arg.value)
			return 1;
		else return 0;
	}
	
	public int hashCode()
	{
		long bits = Double.doubleToLongBits(value);
		return (int)(bits >>> 20);
	}
}